<?php
/**
 * Short Description  
 *
 * Long Description 
 *
 * @category   
 * @package    
 * @subpackage 
 * @copyright 
 * @author     Sandeep Manne<sandeep.manne@costrategix.com>
 */

require_once "Core/System/Abstract.php";

class Core_System_Linux extends Core_System_Abstract
{
	public static function getCommandPath($command)
	{
		return self::run("which ".$command);
	}
	

	
	public static function installPhpExtension($extension)
	{
		throw new Core_System_Exception("Installation not supported on this system");
	}
	
	private static function checkRestrictedCommands($command)
	{
		
	}
	
	public static function isCommandExist($command)
	{
		$output = self::getCommandPath($command);
		return is_string($output[0]);
	}
}